import { MenuRouter } from '@/pages/SalaryManage/components/MenuFilterRouter';

/** 【薪资模板】权限码 */
const SALARY_TEMPLATE_AUTH_CODE = 'finance:salary:computation:setting:salarytemp';
/** 【发放流程】权限码 */
const SALARY_PAYSETTING_AUTH_CODE = 'finance:salary:computation:setting:sendprocess';
/** 【薪资项清单】权限码 */
const SALARY_ITEM_LIST_AUTH_CODE = 'finance:salary:computation:setting:itemlist';

const MENU_AUTH_CODE_MAP = {
    CN: [SALARY_TEMPLATE_AUTH_CODE, SALARY_PAYSETTING_AUTH_CODE, SALARY_ITEM_LIST_AUTH_CODE],
    SG: [SALARY_TEMPLATE_AUTH_CODE, SALARY_PAYSETTING_AUTH_CODE, SALARY_ITEM_LIST_AUTH_CODE]
};

const TemplateSettingRouter = MenuRouter('templateSettingModel', MENU_AUTH_CODE_MAP);

export { TemplateSettingRouter as default, MENU_AUTH_CODE_MAP };
